home *** CD-ROM | disk | FTP | other *** search
- /*
- File: NavigationServicesSupport.h
-
- Contains: xxx put contents here xxx
-
- Version: xxx put the technology version here xxx
-
- Copyright: © 1997 by Apple Computer, Inc., all rights reserved.
-
- File Ownership:
-
- DRI: Yan Arrouye
-
- Other Contact: xxx put alternate contact (owner’s functional manager) here xxx
-
- Technology: xxx put the technology group name here xxx
-
- Writers:
-
- (Yan) Yan Arrouye
-
- Change History (most recent first):
-
- <4> /19/1997 Yan Mixed mode support
- <3> 5/08/97 Yan Renamed HandleFileTranslation -> CompleteSave
- */
-
- #include <Files.h>
- #include <Navigation.h>
-
-
- #define dontSaveChanges 3
-
-
-
- OSStatus OpenFileDialog(OSType applicationSignature, short numTypes, OSType typeList[], NavEventProcPtr eventProc, FSSpec* fileSpec, OSType* fileType);
- // Displays the NavGet dialog and returns the selected file location.
- // To enable multiple document opening through AppleEvents pass NULL as the fileSpec anf fileType.
-
-
-
- short ConfirmSaveDialog(StringPtr documentName, Boolean quitting, NavEventProcPtr eventProc);
- // Displays the save confirmation dialog anmd returns {ok, cancel, dontSaveChanges}
-
-
-
- OSStatus SaveFileDialog(StringPtr fileName, OSType filetype, OSType fileCreator, NavEventProcPtr eventProc, FSSpec* fileSpec, Boolean* stationery, Boolean* replacing, NavReplyRecord* reply);
- // Displays the NavPut dialog and returns the selected file location and replacing info.
-
-
-
- OSStatus CompleteSave(const FSSpec* fileSpec, NavReplyRecord* reply);
- // Call this routine after savibg a document passing back the fileSpec and reply returned by SaveFileDialog
- // This call performs any file tranlation needed and disposes the reply
-
-
-
- pascal void MyEventProc(const NavEventCallbackMessage callBackSelector,
- NavCBRecPtr callBackParms,
- NavCallBackUserData callBackUD);
- // Callback to handle event passing betwwn the navigation dialogs and the applicatio